<!---
	Title:		EPAR1.1 
	Author:		Bruce Frick
	Purpose:	index page
--->

<cfset BASE = CreateObject("component", "cfc.base") />

<cfoutput>
<!---HTML header, css links, js links, and page title--->
#BASE.htmlHeader(
	"", <!---JS links--->
    "", <!---CSS links--->
    "Step 2: Confirmation", <!---Page Title--->
    "Status" <!---Active Nav Link--->
)#
<!---HTML header, css links, js links, and page title--->
    
    
    <cfif Session.strAuthType NEQ ''>
    
		<cfif Session.OfferAccepted EQ 1>
            <cfset Display = "The individual chose to <strong>accept</strong> the offer and their record has been updated with the following information:" />
            <cfset Subject = "Employee Update: Hired" />
        <cfelse>
            <cfset Display = "The individual chose to <strong>reject</strong> the offer.  The offer, as presented, appears below. " />
            <cfset Subject = "Employee Update: Offer Not Accepted" />
        </cfif>
    	
        <h1 class="title">Step 2: Confirmation</h1>
        <div class="entry">
            <p>#Display#</p>
                	<table>
                    	<tr>
                        	<td width=25>&nbsp;</td>
                        	<td>
                    			<p>#Session.Step2Confirm#</p>	                            	
                            </td>
                        </tr>
                    </table>	
                    
                    <cfmail from="""HR Dept - EPAR System"" <noreply@scf.cc>" to="#Session.SupEmail#" type="html" subject="#Subject#">
                	<p>#Display# Please contact HR with any questions you may have.</p>
                	<table>
                    	<tr>
                        	<td width=25>&nbsp;</td>
                        	<td>
                    			<p>#Session.Step2Confirm#</p>	                            	
                            </td>
                        </tr>
                    </table>                    	
                    </cfmail> 
					<p>Thank you for using E-PAR. A status update has been sent via email to the supervisor.</p>                    
                    <p>Enter "Pre-Orientation" data for another user?  Click <a href="Step2-PreOrientation1.cfm">Here</a></p>
        </div>
    
    <cfelse>
        <cfinclude template="denied.cfm">
    </cfif>
    

<!---HTML footer, closes html and body tags.  Any footer info goes here--->
#BASE.htmlFooter()#
<!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>